package com.example.chinesenation.Service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.chinesenation.Mapper.PolicyListMapper;
import com.example.chinesenation.Entity.Policy;
import com.example.chinesenation.Service.IPolicyListService;
import com.example.chinesenation.VO.VOPolicy;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sakuraFallingDown
 * @since 2021-01-12
 */
@Service
public class PolicyListServiceImpl extends ServiceImpl<PolicyListMapper, Policy> implements IPolicyListService {
    @Override
    public void updateAddPageView(VOPolicy policy) {
        Policy autoAddPolicy=new Policy();
        autoAddPolicy.setId(policy.getId());
        autoAddPolicy.setPageview(policy.getPageview());
        updateById(autoAddPolicy);
    }
}
